<template>
  <div class="l-tab-page" style="padding:8px;" >
      <div class="l-rblock" >
        <el-tabs tab-position="left" :stretch="true">
            <el-tab-pane :label="$t('基本信息')"><user-baseinfo></user-baseinfo></el-tab-pane>
            <el-tab-pane :label="$t('联系方式')"><user-contact></user-contact></el-tab-pane>
            <el-tab-pane :label="$t('我的头像')"><user-head></user-head></el-tab-pane>
            <el-tab-pane v-show="this.isShowPassword" :label="$t('修改密码')"><user-password></user-password></el-tab-pane>
            <el-tab-pane :label="$t('我的日志')"><user-log></user-log></el-tab-pane>
        </el-tabs>
      </div>
  </div>
</template>

<script>
import userBaseinfo from './baseinfo'
import userContact from './contact'
import userHead from './headForm'
import userPassword from './password'
import userLog from './log'
export default {
    components: {
        userBaseinfo,
        userContact,
        userHead,
        userPassword,
        userLog
    },
    data () {
        return {
            isShowPassword:false//是否允许修改密码
        };
    },
    mounted () {
        this.ShowPassword()
    },
    computed:{
        
    },
    methods:{
        ShowPassword(){
            //三员账号不可以修改密码【超级管理员+用户能够修改密码】
            if(this.loginInfo.f_SecurityLevel==1 || !this.lr_IsAdmin){
                this.isShowPassword=true;
            }else{
                this.isShowPassword=false;
            }
        }
    }
}
</script>